<div class="clear-fix" style="margin-top: 80px;"></div>
<div class="container">
    <div class="breadcrumb-box row">
        <ul class="breadcrumb">
            <li><a href="/index.html">首页</a></li>
            <li><a href="">资讯中心</a></li>
        </ul>
    </div>
    <div class="main col-xs-12 col-sm-12 col-md-8">
        <div class="news-single-content">
            <h1 class="news-single-title">{$data.title}</h1>
            <div class="entry-meta">
                <span class="published"><span class="fa fa-clock-o"></span>{$data.create_time|date="Y-m-d"}</span>
            </div>
            <div class="news-content">
                <section>
                    {$data.content|raw}
                </section>
            </div>
            <div class="meta-content">
                <div class="tags"><span class="tags-label">Tags:</span>
                    {php}$tags = explode(',',$data->keywords);{/php}
                    {foreach $tags as $value}
                    <a href="/tags/{$value}" rel="tag" data-wpel-link="internal">{$value}</a>
                    {/foreach}
                </div>
            </div>
            <div class="next-content">
                {empty name="nextprev.prev"}
                <p><span>上一篇：<a>没有了</a></span></p>
                {else}
                <p><span>上一篇：<a href="/{$nextprev['prev']['create_time']|date='Y-m-d'}/{$nextprev['prev']['id']}"
                            title="{$nextprev.prev.title}">{$nextprev.prev.title}</a></span></p>
                {/empty}
    
                {empty name="nextprev.next"}
                <p><span>下一篇：<a href="/news">返回列表</a></span></p>
                {else}
                <p><span>下一篇：<a href="/{$nextprev['next']['create_time']|date='Y-m-d'}/{$nextprev['next']['id']}"
                            title="{$nextprev.next.title}">{$nextprev.next.title}</a></span></p>
                {/empty}
            </div>
        </div>
    </div>
    <div class="aside col-md-3 col-md-offset-1 col-xs-12 col-sm-12">
        <div class="sidebar-module">
            <h4>最近更新</h4>
            <ol class="list-unstyled">
                {tp:listbycid cid="0" name="value" limit="7" order="id DESC"}
                <li class="aritlce-li"><a href="/{$value.create_time|date='Y-m-d'}/{$value.id}.html"
                        title="{$value.title}">{$value.title}</a></li>
                {/tp:listbycid}
            </ol>
        </div>
        <div class="sidebar-module">
            <h4>点击排行</h4>
            <ol class="list-unstyled">
                {tp:listbycid cid="0" name="value" limit="7" order="hits DESC"}
                <li class="aritlce-li"><a href="/{$value.create_time|date='Y-m-d'}/{$value.id}.html"
                        title="{$value.title}">{$value.title}</a></li>
                {/tp:listbycid}
            </ol>
        </div>
        <div class="sidebar-module">
            <h4>归档</h4>
            <ol class="list-unstyled">
                {tp:listtime name="value" limit="0"}
                <li class="aritlce-li"><a href="/{:str_replace('-','/',$value->pubmonth)}"
                        title="{$value->pubmonth}">{:str_replace('-','年',$value->pubmonth)}月</a></li>
                {/tp:listtime}
            </ol>
        </div>
    </div>
    {include file="public/qrcode" /}
</div>